home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 10292 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: galaxy.ucr.edu!not-for-mail
  2. From: thp@cs.ucr.edu (Tom Payne)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Coding Standards
  5. Date: 6 Mar 1996 20:42:03 GMT
  6. Organization: University of California, Riverside
  7. Message-ID: <4hktar$5o2@galaxy.ucr.edu>
  8. References: <4hj8ek$elu@sam.inforamp.net>
  9. NNTP-Posting-Host: corvette.ucr.edu
  10. X-Newsreader: TIN [UNIX 1.3 950824BETA PL0]
  11.  
  12. Randy Charles Morin (rmorin@inforamp.net) wrote:
  13. : The company I just started a contract with gave me a set of C++ coding 
  14. : standards.  I started reading and couldn't stop laughing.  I can't reproduce 
  15. : them word-for-word, because that wouldn't be nice to the authors and might be 
  16. : considered a copyright violation or privacy violation, but I'll outline some 
  17. : of the points.
  18.  
  19. By and large these are good guidelines, and I'd appreciate a copy of them.
  20. Some, however, require some exceptions, e.g.:
  21.  
  22. :     -don't use conditional compilation preprocessor directives.  
  23.  
  24. How then does one surpress multiple inclusion of header files?
  25.  
  26. :     -don't allocate memory and expected someone else will delete it later. 
  27.  
  28. Even if you are using a garbage-collection library?
  29.  
  30. Tom Payne (thp@cs.ucr.edu)
  31.